<?php
namespace Api\Model;

use Think\Model\RelationModel;

class BrokerModel extends RelationModel
{

    protected $_link = array(
        'dmands' => array(
            'class_name' => 'Demand',
            'mapping_key' => self::HAS_MANY,
            'foreign_key' => 'member_id',
            'mapping_fields' => 'demand_sn,demand_date,demand_member_type,demand_type,custom_type,add_time,member_id,intention_capital',
            'mapping_order' => 'add_time desc',
            'condition' => 'demand_member_type=1'
        )
    );
}

